import { request } from "umi";
// 公告
export function getnoticeList() {
    let params = {
        t:1652354934852,
        current:1,
        size:10
    }
    return request('shop/notice/page', {
        method:'GET',
        params
    })
}
//删除
export function deletes1 (id: any) {
    return request(`/shop/notice/${id}`, {
        method:'DELETE',
    })
}
//搜索
export function seach1 (data: any) {
    return request(`/shop/notice/page?t=1652356353978&current=${data.current}&size=${data.size}&title=${data.title}`,{
        method: 'GET',
        data: data,
    })
}